﻿@model XPressify.Models.SearchModel


<script type="text/javascript">


    function success() {

    }
</script>


@using (Ajax.BeginForm("Search", "Search", new AjaxOptions { UpdateTargetId = "maincol", OnSuccess = "success", InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace, HttpMethod = "POST" }))
{
    @Html.EditorFor(model => model.SearchText)
    <input type="submit" value="Search" />
}